<?php

namespace app\model;

use app\BaseModel;
use think\model\relation\BelongsTo;

/**
 * 预警报告记录
 */
class WarningReportRecordModel extends BaseModel
{
    protected $name = 'warning_report_record';


    public function taskResult(): BelongsTo
    {
        return $this->belongsTo(TaskUserResultModel::class,'result_id');
    }

    public function selfResult(): BelongsTo
    {
        return $this->belongsTo(SelfEvaluationResultModel::class,'result_id');
    }

    public function proxyResult(): BelongsTo
    {
        return $this->belongsTo(ProxyEvaluationResultModel::class,'result_id');
    }
}